import os
import sql
from sqlilabs.index import sqlilabs
from xsslabs.index import xsslabs

try:
    import flask
except ImportError:
    os.system('pip install flask')
    import flask

from flask import Flask

app = Flask(__name__)
app.config['JSON_AS_ASCII'] = False

@app.route('/')
def hello_world():  # put application's code here
    return 'Hello World!'


app.register_blueprint(sqlilabs, url_prefix="/sqlilabs")

app.register_blueprint(xsslabs, url_prefix="/xsslabs")

if __name__ == '__main__':
    print('欢迎来的flasklabs乐园！')
    app.run(debug=True)
